SuperTemplate, Version 2
Written by: NaquadaBomb @ mIRC-DLL.com
 

SuperTemplate is a generic template programmers can use to create their own DLL files for mIRC. The DLL simplifies working with mIRC. In order to use the safe subclassing, you must place the SubclassMonitor.dll file in the $mircdir (root mIRC) folder.

Features

        ○    Argument Handling for mIRC DLL functions, passing arguments as spaced tokens...

Example: data = "123 422 Testing Hi There"
int i = T_INT(1); // First Argument
int j = T_INT(2); // Second Argument
char s[MAXSTR]; T_STR(s, 3, TO_END) // Last Argument
Results: i = 123;
j = 422;
s = "Testing Hi There";
 

        ○    printf like mIRC evaluation, commands, signals, and return values.

Example: text = mEval("$asctime(%d)", time);
mCmd("did -a %s %d %s", dname, did, text);
Signal("SIGNAL_NAME", "%d %d %d %d", x, y, w, h);
mReturn(data, "Error #%d", err);

        ○    "Window Name" to HWND and HWND to "Window Name" conversions

        ○    String Manipulation functions

        ○    Replacements for $left, $right, $mid, and $gettok

* The $gettok replacement recognizes quotes and $null tokens
* GetTok("1 \"2 2\" 3, 2, 32, false) - returns "2 2"
* GetTok("A.B..D.E", 4, 46, false) - returns D
* GetTok(A.B.C.D, 3, 46, true) - returns C.D
* See xgettok in mIRC-DLL.mrc for alias wrapper

        ○    A subclassed WinProc example for the mIRC Toolbar. See mIRC-DLL.mrc and the source for more information

Reminder: If you use an mirc variable with the "printf-like" commands, variables should look like this "mEval("%%Varname");"

Feel free to reuse all or some of this DLL as you see fit. I am not responsible for any harm you cause because of using it.